fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

group_map

Sequence.group_map

group the elements of this sequence by a key of type and applies function f to all elements

example: group characters by category and add underscores around each character


=> {(digit => [_1_, _4_]), (letter => [_A_, _b_, _X_]), (other => [_?_])}

Type Parameters

type of the keys
type of the values in the result
the type of the map to create

Arguments

function to generate the keys
function applied to each element
0.099dev (GIT hash bf4ead724d7f3fdab43a87b63c17477c916c8995)
last changed: 2026-11-04